package com.ansuenjob.jsonBuilder;

import org.json.JSONException;
import org.json.JSONObject;

import com.ansuenjob.model.Job;
import com.ansuenjob.model.JobInterview;

public class InterviewListBuilder extends JSONBuilde {

	@Override
	
	public JobInterview buildJson(JSONObject jsonObject) throws JSONException {
		JobInterview jobInterview = new JobInterview();
		int mid = jsonObject.getInt("mid");
		String interviewDate = jsonObject.getString("interviewDate");
		String chatAddr = jsonObject.getString("chatAddr");
		String chatPhone = jsonObject.getString("chatPhone");
		String chatDesc = jsonObject.getString("chatDesc");
		jobInterview.setMid(mid);
		jobInterview.setChatAddr(chatAddr);
		jobInterview.setChatDesc(chatDesc);
		jobInterview.setChatPhone(chatPhone);
		jobInterview.setInterviewDate(interviewDate);
		return jobInterview;
	}
}
